package com.lawyer.entity;

import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 订单表
 *
 */
/**
 * @author Administrator
 *
 */
@Entity
@Table
public class RiderOrder extends AbstractAuditingEntity {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "主健")
	private Integer id;

	@ApiModelProperty(value = "订单金额")
	private Double orderAmount;
	
	@ApiModelProperty(value = "订单所属者")
	private String userId;

	@ApiModelProperty(value = "姓名")
	private String username;

	@ApiModelProperty(value = "联系电话")
	private String phone;

	@ApiModelProperty(value = "头像", hidden = true)
	private String headerIco;

	@ApiModelProperty(value = "平台")
	private String platform;

	@ApiModelProperty(value = "事故发生地")
	private String accidentPlace;

	@ApiModelProperty(value = "事故时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date accidentDate;

	@ApiModelProperty(value = "事故责任")
	private String accidentLiability;

	@ApiModelProperty(value = "佣金")
	private Double commission;

	@ApiModelProperty(value = "第三者姓名")
	private String thirdPartyName;

	@ApiModelProperty(value = "第三者电话")
	private String thirdPartyPhone;

	@ApiModelProperty(value = "未完成，已完成")
	private String orderStatus;

	
	@ApiModelProperty(value = "骑手所属站长id")
	private String leaderId;
	
	@ApiModelProperty(value = "站长头像")
	private String leaderHeaderIco;

	@ApiModelProperty(value = "站长名字")
	private String leaderName;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getHeaderIco() {
		return headerIco;
	}

	public void setHeaderIco(String headerIco) {
		this.headerIco = headerIco;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getAccidentPlace() {
		return accidentPlace;
	}

	public void setAccidentPlace(String accidentPlace) {
		this.accidentPlace = accidentPlace;
	}

	public Date getAccidentDate() {
		return accidentDate;
	}

	public void setAccidentDate(Date accidentDate) {
		this.accidentDate = accidentDate;
	}

	public String getAccidentLiability() {
		return accidentLiability;
	}

	public void setAccidentLiability(String accidentLiability) {
		this.accidentLiability = accidentLiability;
	}

	public Double getCommission() {
		return commission;
	}

	public void setCommission(Double commission) {
		this.commission = commission;
	}

	public String getThirdPartyName() {
		return thirdPartyName;
	}

	public void setThirdPartyName(String thirdPartyName) {
		this.thirdPartyName = thirdPartyName;
	}

	public String getThirdPartyPhone() {
		return thirdPartyPhone;
	}

	public void setThirdPartyPhone(String thirdPartyPhone) {
		this.thirdPartyPhone = thirdPartyPhone;
	}

	public String getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}

	public String getLeaderHeaderIco() {
		return leaderHeaderIco;
	}

	public void setLeaderHeaderIco(String leaderHeaderIco) {
		this.leaderHeaderIco = leaderHeaderIco;
	}

	public String getLeaderName() {
		return leaderName;
	}

	public void setLeaderName(String leaderName) {
		this.leaderName = leaderName;
	}

	public String getLeaderId() {
		return leaderId;
	}

	public void setLeaderId(String leaderId) {
		this.leaderId = leaderId;
	}

	public Double getOrderAmount() {
		return orderAmount;
	}

	public void setOrderAmount(Double orderAmount) {
		this.orderAmount = orderAmount;
	}

	
}
